home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950929-19951130 / 000281_news@columbia.edu_Wed Nov 1 23:15:15 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA24469
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Fri, 3 Nov 1995 10:05:09 -0500
  3. Received: by apakabar.cc.columbia.edu id AA18551
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Fri, 3 Nov 1995 10:05:08 -0500
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!news.kei.com!news.mathworks.com!uunet!in2.uu.net!csn!nntp-xfer-2.csn.net!silo.nrcs.usda.gov!ftcnews.nrcs.usda.gov!feinde2.ftc.nrcs.usda.gov!ute
  6. From: ute@feinde2.ftc.nrcs.usda.gov (Ute R. Willmore)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: MS-kermit and APC codes (LONG)
  9. Date: 1 Nov 1995 23:15:15 GMT
  10. Organization: USDA-SCS NHQ in Fort Collins
  11. Lines: 74
  12. Message-Id: <478v23$1s8@ftcnews.nrcs.usda.gov>
  13. Nntp-Posting-Host: feinde2.ftc.nrcs.usda.gov
  14. X-Newsreader: TIN [version 1.2 PL2]
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. I am still having some problems getting MS-Kermit to do what I want it
  18. to do. Last time I posted, I couldn't turn of the file display on the DOS side
  19. from the UNIX side. I got that figured out now. Sorry, Frank, but your answer 
  20. to my question was incorrect, but I appreciate the help anyway. I decided to 
  21. give a very detailed account of what I am doing this time, to avoid misunder-
  22. standings. 
  23.  
  24. Anyway, now I am trying to determine if a file exists on the my DOS system,
  25. and if so send that file to the UNIX system, otherwise, I want to give some 
  26. indication of the error to UNIX, to prevent C-Kermit from getting started.
  27. Remember I am doing all of this kind of backwards. I start MS-Kermit on
  28. my DOS system which is hooked to my UNIX system via a serial connection. Then
  29. I run some program on my UNIX system that needs to tranfer files back and
  30. forth to the DOS system. So I have to do system calls that look something like
  31. this:
  32.  
  33. echo "\033_send c:\mydir\myfile\033\\"; kermit -r -a /tmp/myfile
  34.  
  35. This works just fine IF c:\mydir\myfile exists, otherwise, C-Kermit starts
  36. and puts up a "ready to receive " message and then waits for the user to issue
  37. a send command on the DOS side. Of course, that user input would never happen.
  38.  
  39. As a work around, I create script file that I send to DOS, and then tell
  40. MS-Kermit to take that script. ie.
  41.  
  42. echo "\033_receive my_script\033\\" ; kermit -s my_script
  43. echo "\033_take my_script\033\\" ; kermit -r receive
  44.  
  45. where my_script looks something like this:
  46.  
  47. if exists c:\mydir\my_file send c:\my_dir\my_file
  48. if not exists c:\my_dir\my_file send my_script
  49.  
  50. This works okay. Since I send something for sure, C-Kermit doesn't hang, and
  51. once I have the file on my UNIX system I can figure out if it is data or my 
  52. script. It's ugly and but there are some problems.
  53.  
  54. 1) I can't delete my_script, i.e. putting 'run del my_script' inside the 
  55.    script has no effect. How come?
  56.  
  57. 2) I would prefer to just send some error return (rather than my_script)
  58.    if the data file doesn't exist. I tried using 'output ERROR' in the second 
  59.    if but it doesn't arrive on my UNIX system. Am I missing something?
  60.  
  61. 3) If this ugly way is the only way, I need to reset file collision before I
  62.    send my_script to the DOS system. That's easy enough to do with 
  63.  
  64.    echo "\033_set file collision overwrite\033\\" 
  65.  
  66.    and my_script would include the command to set file collision to what ever
  67.    it was before. But, here is the problem: How can I determine what file
  68.    callision was set to, save that information, and then use it to reset 
  69.    file collision when my_script is done?
  70.  
  71. 4) Is there a GOOD source on using APC codes and MS-Kermit? I have read most
  72.    of Using MS-Kermit and Using C-Kermit, but neither one mentions them. The
  73.    .bwr files mention them but not in detail. 
  74.  
  75. Okay that should do it for today. BTW, I am running MS-Kermit 3.13 Patch 
  76. level 0 dated July 8 1993 under DOS 6.2 and C-Kermit 5A(190) for UnixWare 
  77. dated Oct/4/94 under UnixWare (thats Unix 4.2 I think).
  78.  
  79.  
  80. Thanks for reading this and thanks for any help.
  81.  
  82. Ute
  83.  
  84. ---------------------------------------------------------------------------
  85.  
  86. Life is a game that must be played.
  87. The rules of the games are known to us as the Laws of Nature.
  88.  
  89.  
  90. e-mail:  uwillmore@ftc.nrcs.usda.gov